home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000366_news@watsun.cc.columbia.edu _Mon Mar 15 13:45:07 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id NAA02476
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 15 Mar 1999 13:45:06 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id NAA00243
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 15 Mar 1999 13:31:54 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: Tim Rhodes <rhodes@rhodes.cc.vt.edu>
  10. Subject: Re: Carrier test
  11. Date: 15 Mar 1999 18:31:42 GMT
  12. Organization: Virginia Tech, Blacksburg, Virginia, USA
  13. Message-ID: <7cjjme$gd6$1@solaris.cc.vt.edu>
  14. To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. Jeffrey Altman <jaltman@watsun.cc.columbia.edu> wrote:
  17. : In article <7cjeiv$cbi$1@solaris.cc.vt.edu>,
  18. : Tim Rhodes  <rhodes@rhodes.cc.vt.edu> wrote:
  19. : : I'm converting a Procomm script to a C-Kermit script.  The Procomm script
  20. : : contains tests to determine carrier is up.  Does kermit have a variable
  21. : : that can be tested for this?  I've tried SET MODEM CARRIER-WATCH ON, but
  22. : : on an outstanding receive, carrier dropping does not seem to interupt or
  23. : : affect the script.
  24. : : 
  25.  
  26. : Syntax: WAIT { number-of-seconds, hh:mm:ss } [modem-signal(s)]
  27.  
  28. : Examples:
  29. :   wait 5 cd cts
  30. :   wait 23:59:59 cd
  31.  
  32. :   Waits up to the given number of seconds or the given time of day for all
  33. :   the specified modem signals to appear on the serial communication device.
  34. :   Sets FAILURE if the signals do not appear in the given time or interrupted
  35. :   from the keyboard during the waiting period.  Also see HELP PAUSE.
  36.  
  37. : Signals:
  38. :   cd  = Carrier Detect;
  39. :   dsr = Dataset Ready;
  40. :   cts = Clear To Send;
  41. :   ri  = Ring Indicate.
  42.  
  43. : However, if Carrier-Watch is ON and you are using INPUT commands the INPUT 
  44. : command will fail if Carrier-Detect has dropped assuming there is no
  45. : data waiting to be read.  Under what circumstances do you find that
  46. : carrier-detect is not being noticed?
  47.  
  48. : What version of C-kermit are you using and on which operating system 
  49. : and version?
  50. Using C-Kermit 6.0.192, 6 Sep 96, for Solaris 2.x on Solaris 2.6.
  51.  
  52. The app is fairly brain dead procedure when the server issues a login 
  53. prompt and the client sends a login.  Unsuccessful login is indicated
  54. by the server hanging up (the Procomm script waits 5 seconds and then
  55. tests to see if connection still has carrier detect).  If still connected,
  56. the script attempts to receive a file (using kermit protocol).  
  57.  
  58. In my testing, I have SET MODEM CARRIER-WATCH ON.  After login, the 
  59. script issues a receive.  The server may or may not have a file to be
  60. sent.  If no file is available, the server hangs up.  The outstanding
  61. receive does not notice carrier dropping.  The script works by the 
  62. receive failing with message "?Sent too many NAKs." and success/failure
  63. set properly.  
  64. -- 
  65. .. Tim Rhodes  ........................  http://rhodes.cc.vt.edu/~rhodes ..
  66. .. Lead Systems Engineer, Virginia Tech  ............  Tim.Rhodes@vt.edu ..